<%--
  Created by IntelliJ IDEA.
  User: shisjin
  Date: 2023/9/25
  Time: 16:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      String username = request.getParameter("username");
      String  password = request.getParameter("password");
      if ("zhangsan".equals(username)&&"123456".equals(password)){
          //密码和用户名正确则跳到成功界面 response_success.jsp
          response.sendRedirect("response_success.jsp");
      }else {
          //密码和用户不正确就跳转到response_failed.jsp
          response.sendRedirect("response_failed.jsp");
      }



  %>

</body>
</html>
